﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html>
<html lang="en">
<head>
<!-- jsp文件头和头部 -->
<%@ include file="top.jsp"%>
</head>
<body class="no-skin">
	<div id="navbar" class="navbar navbar-default">
		<div class="navbar-container" id="navbar-container">
			<div class="navbar-header pull-left">
				<a class="navbar-brand">
					<small style="color: #222">${applicationScope.sysName}</small>
				</a>
			</div>
			<div class="navbar-buttons navbar-header pull-right" role="navigation">
				<ul class="nav ace-nav">
					<li class="light-blue">
						<a data-toggle="dropdown" class="dropdown-toggle" href="#">
							<span class="user-info" id="user_info">
								<small>欢迎</small>${user.nickname }
							</span>
							<i class="ace-icon fa fa-caret-down"></i>
						</a>
						<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
							<li>
								<a onclick="editUserH();" style="cursor: pointer;">
									<i class="ace-icon fa fa-cog"></i>
									修改资料
								</a>
							</li>
							<li class="divider"></li>
							<li>
								<a href="/admin/logout">
									<i class="ace-icon fa fa-power-off"></i>
									退出登录
								</a>
							</li>
						</ul>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<div class="main-container" id="main-container">
		<%@ include file="left.jsp"%>
		<div class="main-content">
			<div class="main-content-inner">
				<div class="page-content">
					<div class="ace-settings-container" id="ace-settings-container">
						<div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
							<i class="ace-icon fa fa-cog bigger-130"></i>
						</div>
						<div class="ace-settings-box clearfix" id="ace-settings-box">
							<div class="pull-left width-50">
								<!-- #section:settings.skins -->
								<div class="ace-settings-item">
									<div class="pull-left">
										<select id="skin-colorpicker" class="hide">
											<option data-skin="no-skin" value="#438EB9">#438EB9</option>
											<option data-skin="skin-1" value="#222A2D">#222A2D</option>
											<option data-skin="skin-2" value="#C6487E">#C6487E</option>
											<option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
										</select>
									</div>
									<span>&nbsp; 选择皮肤</span>
								</div>
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-breadcrumbs" />
									<label class="lbl" for="ace-settings-breadcrumbs">固定面包屑</label>
								</div>
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
									<label class="lbl" for="ace-settings-add-container"> 居中风格 </label>
								</div>
							</div>
							<div class="pull-left width-50">
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-hover" />
									<label class="lbl" for="ace-settings-hover">折叠菜单</label>
								</div>
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-compact" />
									<label class="lbl" for="ace-settings-compact">压缩菜单</label>
								</div>
								<div class="ace-settings-item">
									<input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-highlight" />
									<label class="lbl" for="ace-settings-highlight">弹出风格</label>
								</div>
							</div>
						</div>
					</div>
					<div class="row">
						<div id="jzts" style="display: none; width: 100%; position: fixed; z-index: 99999999;">
							<div class="commitopacity" id="bkbgjz"
								style="position: absolute; width: 100%; height: 100px; background: #7f7f7f; filter: alpha(opacity = 50); -moz-opacity: 0.8; -khtml-opacity: 0.5; opacity: 0.5; top: 0px; z-index: 99999;"></div>
							<div style="padding-left: 70%; padding-top: 1px;">
								<div style="float: left; margin-top: 3px;">
									<img src="/static/ace/images/loadingi.gif" />
								</div>
								<div style="margin-top: 6px;">
									<h4 class="lighter block red">&nbsp;加载中 ...</h4>
								</div>
							</div>
						</div>
						<div>
							<iframe name="mainFrame" id="mainFrame" frameborder="0" src="/admin/tab.do" style="margin: 0 auto; width: 100%; height: 100%;"></iframe>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<%@ include file="foot.jsp"%>
	<script src="/static/ace/js/ace/elements.scroller.js"></script>
	<script src="/static/ace/js/ace/elements.colorpicker.js"></script>
	<script src="/static/ace/js/ace/elements.fileinput.js"></script>
	<script src="/static/ace/js/ace/elements.typeahead.js"></script>
	<script src="/static/ace/js/ace/elements.wysiwyg.js"></script>
	<script src="/static/ace/js/ace/elements.spinner.js"></script>
	<script src="/static/ace/js/ace/elements.treeview.js"></script>
	<script src="/static/ace/js/ace/elements.wizard.js"></script>
	<script src="/static/ace/js/ace/elements.aside.js"></script>
	<script src="/static/ace/js/ace/ace.js"></script>
	<script src="/static/ace/js/ace/ace.ajax-content.js"></script>
	<script src="/static/ace/js/ace/ace.touch-drag.js"></script>
	<script src="/static/ace/js/ace/ace.sidebar.js"></script>
	<script src="/static/ace/js/ace/ace.sidebar-scroll-1.js"></script>
	<script src="/static/ace/js/ace/ace.submenu-hover.js"></script>
	<script src="/static/ace/js/ace/ace.widget-box.js"></script>
	<script src="/static/ace/js/ace/ace.settings.js"></script>
	<script src="/static/ace/js/ace/ace.settings-rtl.js"></script>
	<script src="/static/ace/js/ace/ace.settings-skin.js"></script>
	<script src="/static/ace/js/ace/ace.widget-on-reload.js"></script>
	<script src="/static/ace/js/ace/ace.searchbox-autocomplete.js"></script>
	<link rel="stylesheet" href="/static/ace/css/ace.onpage-help.css" />
	<script src="/static/ace/js/ace/elements.onpage-help.js"></script>
	<script src="/static/ace/js/ace/ace.onpage-help.js"></script>
	<script type="text/javascript" src="/plugins/attention/zDialog/zDrag.js"></script>
	<script type="text/javascript" src="/plugins/attention/zDialog/zDialog.js"></script>
	<script type="text/javascript" src="/static/js/jquery.tips.js"></script>
	<script type="text/javascript">
		$(function() {
			jzts();
		});
		function cmainFrame() {
			var hmain = document.getElementById("mainFrame");
			var bheight = document.documentElement.clientHeight;
			hmain.style.width = '100%';
			hmain.style.height = (bheight - 49) + 'px';
			var bkbgjz = document.getElementById("bkbgjz");
			bkbgjz.style.height = (bheight - 41) + 'px';

		}
		cmainFrame();
		window.onresize = function() {
			cmainFrame();
		};
		try {
			ace.vars['base'] = '..';
			ace.settings.check('navbar', 'fixed');
			ace.settings.check('main-container', 'fixed')
		} catch (e) {
		}
		// 修改个人资料
		function editUserH() {
			jzts();
			var diag = new top.Dialog();
			diag.Drag = true;
			diag.Title = "个人资料";
			diag.URL = locat + '/user/goEditMyU.do';
			diag.Width = 469;
			diag.Height = 469;
			diag.CancelEvent = function() { // 关闭事件
				diag.close();
			};
			diag.show();
		}

		// 清除加载进度
		function hangge() {
			$("#jzts").hide();
		}

		//显示加载进度
		function jzts() {
			$("#jzts").show();
		}

		var fmid = "fhindex"; // 菜单点中状态
		var mid = "fhindex"; // 菜单点中状态
		function siMenu(id, fid, menuName, menuUrl) {
			if (id != mid) {
				$("#" + mid).removeClass();
				mid = id;
			}
			if (fid != fmid) {
				$("#" + fmid).removeClass();
				fmid = fid;
			}
			$("#" + fid).attr("class", "active open");
			$("#" + id).attr("class", "active");
			top.mainFrame.tabAddHandler(id, menuName, menuUrl);
			if (menuUrl != "druid/index.html") {
				jzts();
			}
		}
	</script>
</body>
</html>